package com.greate.community.service;

import com.greate.community.entity.Section;
import com.greate.community.util.CommunityConstant;

import java.util.List;

public interface SectionService extends CommunityConstant {
    List<Section> getAllActiveSections();

    List<Section> getSectionsByUserId(Integer userId);

    Section getSectionsById(Long sectionId);

    void updateStatus(int sectionId, int status);

    List<Section> getSectionsByParams(String sectionName, String username, String status, String startTime, String endTime);

    List<Section> getAllSectionsWithUser();

    void changeModerator(String sectionId, String userId);

    void addSection(String name);
}
